package com.briup.item.service;

import com.briup.api.domain.dto.OrderItemInsertDTO;
import com.briup.api.domain.pojo.Goods;
import com.briup.api.domain.vo.GoodsGetDetailVO;
import com.briup.common.response.PageTemplate;
import com.briup.item.domain.vo.GoodsGetHotVO;
import com.briup.item.domain.vo.GoodsGetListVO;

import java.util.List;

/**
* @author qinyc
* @description 针对表【es_goods(商品表)】的数据库操作Service
* @createDate 2024-12-24 09:16:52
*/
public interface GoodsService {

    PageTemplate<GoodsGetHotVO> getHot(Integer pageNum, Integer pageSize);

    GoodsGetDetailVO getGoodsDetail(Integer id);

    PageTemplate<GoodsGetListVO> getList(Integer categoryId, Integer pageNum, Integer pageSize);

    void updateStock(List<OrderItemInsertDTO> items);

    List<Goods> queryGoodByIds(List<Integer> ids);
}
